﻿@model PaceR.Examples.MVC.Models.UserProfile

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>UserProfile</legend>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Username</dfn>
            @Html.EditorFor(model => model.Username)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Password</dfn>
            @Html.EditorFor(model => model.Password)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.FullName</dfn>
            @Html.EditorFor(model => model.FullName)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Email</dfn>
            @Html.EditorFor(model => model.Email)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Address1</dfn>
            @Html.EditorFor(model => model.Address1)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Address2</dfn>
            @Html.EditorFor(model => model.Address2)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.City</dfn>
            @Html.EditorFor(model => model.City)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Region</dfn>
            @Html.EditorFor(model => model.Region)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.PostalCode</dfn>
            @Html.EditorFor(model => model.PostalCode)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Country</dfn>
            @Html.EditorFor(model => model.Country)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.LocalizationPreference</dfn>
            @Html.EditorFor(model => model.LocalizationPreference)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.FavoriteColor</dfn>
            @Html.EditorFor(model => model.FavoriteColor)
        </label>

        <label class="editor-label">
            <dfn>@ViewRes.UserProfile.Signature</dfn>
            @Html.EditorFor(model => model.Signature)
        </label>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
